<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

#[Constants]
class ErrorCode extends AbstractConstants
{
    /**
     * @Message("Server Error！")
     */
    public const SERVER_ERROR = 500;

    /**
     * @Message("请先登录")
     */
    public const TOKEN_INVALID = 401;

    /**
     * @Message("请求参数错误")
     */
    public const HEADER_FIELD_ERR = 412;

    /**
     * @Message("请求参数错误")
     */
    public const VALIDATE_FAIL = 400;

    /**
     * @Message("禁止访问")
     */
    public const ACCESS_DENIED = 403;

    /**
     * @Message("资源不存在")
     */
    public const NOT_FOUND = 404;

    /**
     * @Message("OK")
     */
    public const HTTP_OK = 200;

    /**
     *  @Message("操作失败")
     */
    public const SERVICE_HAND_FAILED = 100;


}
